<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>用户信息</title>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
 </head>
 <body style="overflow-y: hidden" scroll="no">
  <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="sysVerController.do?save" beforeSubmit="upload">
			<input id="id" name="id" type="hidden" value="${tSysVerPage.id}">
			<input id="filePath" name="filePath" type="hidden" value="${tSysVerPage.filePath}">
			<input id="operateEmpCde" name="operateEmpCde" type="hidden" value="${tSysVerPage.operateEmpCde}">
			<input id="sysMrk" name="sysMrk" type="hidden" value="${tSysVerPage.sysMrk}">
			
			<table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
				<tr>
					<td align="right">
						<label class="Validform_label">
							文件名称:
						</label>
					</td>
					<td class="value">
						<input class="inputxt" id="fileName" name="fileName" ignore="ignore"
							   value="${tSysVerPage.fileName}">
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							系统代码:
						</label>
					</td>
					<td class="value">
						<input class="inputxt" id="sysCde" name="sysCde" 
							   value="${tSysVerPage.sysCde}" datatype="*">
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							系统名称:
						</label>
					</td>
					<td class="value">
						<input class="inputxt" id="sysNme" name="sysNme" 
							   value="${tSysVerPage.sysNme}" datatype="*">
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							保险公司名称:
						</label>
					</td>
					<td class="value">
						<input  class="inputxt" id="compNme" name="compNme" ignore="ignore"
							   value="${tSysVerPage.compNme}">
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							机构代码:
						</label>
					</td>
					<td class="value">
						<input class="inputxt" id="dptCde" name="dptCde" ignore="ignore"
							   value="${tSysVerPage.dptCde}">
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							机构名称:
						</label>
					</td>
					<td class="value">
						<input class="inputxt" id="dptNme" name="dptNme" ignore="ignore"
							   value="${tSysVerPage.dptNme}">
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							文件大小:
						</label>
					</td>
					<td class="value">
						<input class="inputxt" id="fileSize" name="fileSize" ignore="ignore"
							   value="${tSysVerPage.fileSize}">
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							版本号:
						</label>
					</td>
					<td class="value">
						<input class="inputxt" id="ver" name="ver" 
							   value="${tSysVerPage.ver}" datatype="*" Placeholder="请输入数字">
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							选择文件:
						</label>
					</td>
					<td class="value">
						<t:upload name="fiels" buttonText="上传文件" uploader="sysVerController.do?addorupdate" extend="office" id="file_upload" formData="documentTitle"></t:upload>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							操作时间:
						</label>
					</td>
					<td class="value">
<!-- 						<input class="Wdate" onClick="WdatePicker()"  style="width: 150px" id="operateTm" name="operateTm"  -->
<%-- 							   value="<fmt:formatDate value='${tSysVerPage.operateTm}' type="date" pattern="yyyy-MM-dd"/>" datatype="*"> --%>
						<input class="Wdate" onClick="WdatePicker()"  style="width: 150px" id="operateTm" name="operateTm" 
							    datatype="*" value="<fmt:formatDate value='${tSysVerPage.operateTm}' type="date" pattern="yyyy-MM-dd"/>"/>
						<span class="Validform_checktip"></span>
					</td>
				</tr>
			</table>
		</t:formvalid>
 </body>
 <script type="text/javascript">
 //隐藏3、4、5行
$.each($("#formobj tr"), function(i){ 
	 if(i > 2 && i < 6){ 
	 	this.style.display = 'none'; 
	 } 
 });
$(document).ready(function(){
	$("#fileSize").attr("readOnly",true);

});

//限制只能输入数字
$.fn.onlyNum = function () {
 $(this).keypress(function (event) {
     var eventObj = event || e;
     var keyCode = eventObj.keyCode || eventObj.which;
     if ((keyCode >= 48 && keyCode <= 57 || keyCode == 8 ))
         return true;
     else
         return false;
 }).focus(function () {
 //禁用输入法
     this.style.imeMode = 'disabled';
 }).bind("paste", function () {
 //获取剪切板的内容
     var clipboard = window.clipboardData.getData("Text");
     if (/^\d+$/.test(clipboard))
         return true;
     else
         return false;
 });
};
$(function () {
    // 限制使用了onlyNum类样式的控件只能输入数字
    $("#ver").onlyNum();
});
 </script>